import pytest


def setup():
    print("before")


def teardown():
    print("after")


def test_demo1():
    assert 3 == 3


def test_demo2():
    assert 3 == 5


@pytest.mark.skip(reason="暂时不执行")
def test_demo3():
    assert 2 == 2


def test_case4():
    return 4


@pytest.mark.skipif(test_case4() == 1, reason="暂时不执行")
def test_demo5():
    assert 2 == 2


if __name__ == '__main__':
    pytest.main(['-s', '-v'])
